package org.jeecg.modules.demo.mall.yxlevelproductdiscount.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.mall.entity.YxLevelProductDiscount;

/**
 * @Description: 商品等级价格表
 * @Author: jeecg-boot
 * @Date: 2023-11-10
 * @Version: V1.0
 */
public interface IYxLevelProductDiscountService extends IService<YxLevelProductDiscount> {

    /**
     *查询商品对应的等级折扣
     * @param productType
     * @param levelId
     * @param MerId
     * @param productId
     * @return
     */
    YxLevelProductDiscount queryLevelPrice(Integer productType, Integer levelId, Integer MerId,  Long productId);


    /**
     * 分页查询返回商品名称还有等级名称
     * @param yxLevelProductDiscount
     * @return
     */
    YxLevelProductDiscount queryName(YxLevelProductDiscount yxLevelProductDiscount);


}
